//
// Created by hitfy on 2018/4/22.
//

#include "Triangle.h"

//int main()
//{
//    Triangle tri(Vector2d(0,0), Vector2d(6,6), Vector2d(12,0));
//    srand(time(0));
//    for(int i = 0; i < 20; ++i)
//    {
//        Vector2d point((rand()*1.0 / RAND_MAX) * 12, (rand()*1.0 / RAND_MAX) * 6);
//        cout<<point.x_<<" "<<point.y_<<":     ";
//        cout<<tri.IsPointInTriangle1(point)<<" ";
//        cout<<tri.IsPointInTriangle2(point)<<" ";
//        cout<<tri.IsPointInTriangle3(point)<<" ";
//        cout<<tri.IsPointInTriangle4(point)<<endl;
//    }
//}